# 求 f(x) 的值

import math

x = float(input())

res = (math.exp(x)-15*x)/((x**4+1)**0.5) - math.log(7*x) + math.sin(7*math.pi/36)

# res = int(res*1000)/1000

print('f({0})={1}'.format(x,res))